<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<%-- 
    Document   : nuevo_corredor
    Created on : 21/06/2010, 10:50:25 PM
    Author     : Manuel
--%>

<script language ="javascript">
    <!--

    function valida()
    {
        if(document.datos.nombre.value=="")
        {
            window.alert("debe ingresar un nombre")
        }
        else
            if(document.datos.apellidoPaterno.value=="")
        {
            window.alert("debe ingresar su ap paterno")
        }
        else
            if(document.datos.dni.value=="")
        {
            window.alert("debe ingresar su DNI")
        }
        else
            if(document.datos.email.value=="")
        {
            window.alert("debe ingresar su mail")
        }
        else
        {
            document.datos.submit();
        }
    }


    -->
</script>

<table width="100" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="756" height="160">
                <param name="movie" value="swf/banner_int.swf" />
                <param name="quality" value="high" />
                <embed src="swf/banner_int.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="756" height="160"></embed>
            </object></td>
    </tr>
    <tr>
        <td><img src="images/linea.jpg" width="756" height="3" /></td>
    </tr>
    <tr>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td><table width="756" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                    <td colspan="2" class="titulo_azul">Nuevo Usuario </td>
                </tr>
                <tr>
                    <td colspan="2" >&nbsp;</td>
                </tr>
                <tr>
                    <td colspan="2" ><img src="images/linea.jpg" width="756" height="3" /></td>
                </tr>
                <tr>
                    <td colspan="2" height="10"></td>
                </tr>
                <tr>
                    <td colspan="2" height="10">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</td>
                </tr>
                <tr>
                    <td colspan="2" height="10"></td>
                </tr>

                <tr>
                    <td width="650" colspan="2"><table width="756" border="0" align="center" cellpadding="0" cellspacing="0">

                            <tr>
                                <td valign="top"><table width="756" border="0" align="center" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td width="484" valign="top">
                                                <table width="89%" border="0" cellspacing="0" cellpadding="0">
                                                    <form name="datos" action ="iniciar_sesion.jsp" method="post">
                                                        <tr>
                                                            <td width="48%" height="23" align="left">Nombre</td>
                                                            <td width="52%" align="left"><input name="nombre" type="text" class="combo_texto" id="nombre2" />                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="30" align="left">Apellido Paterno </td>
                                                            <td align="left"><input name="apellidoPaterno" type="text" class="combo_texto" id="nombre22" /></td>
                                                        </tr>
                                                        <tr>
                                                            <td height="30" align="left">Apelido Materno </td>
                                                            <td align="left"><input name="apellidoMaterno" type="text" class="combo_texto" id="nombre23" /></td>
                                                        </tr>
                                                        <tr>
                                                            <td height="30" align="left">Tipo</td>
                                                            <td align="left">
                                                                <select name="tipo" class="combo_texto">
                                                                    <option value ="cliente">Cliente</option>
                                                                    <option value ="corredor">Corredor</option>
                                                                </select>

                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="30" align="left">DNI</td>
                                                            <td align="left"><input name="dni" type="text" class="combo_texto" id="empresa2" /></td>
                                                        </tr>
                                                        <tr>
                                                            <td height="30" align="left">Sexo</td><td align="left"> <input type="radio" name="sexo" value="M"> Masculino
                                                                <input type="radio" name="sexo" value="F"> Femenino </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="30" align="left">Direccion</td>
                                                            <td align="left"><input name="dirrecion" type="text" class="combo_texto" id="telefono2" /></td>
                                                        </tr>
                                                        <div class="distrito">
                                                            <td height="30" align="left">Distrito</td>
                                                            <td align="left"><form:select path="distritos">
                                                                <form:options items="${distritos}" itemValue="codigo" itemLabel="nombre" ></form:options>
                                                            </form:select></td>
                                                        </div>
                                                        <tr>
                                                            <td height="30" align="left">Telefono</td>
                                                            <td align="left"><input name="telefono" type="text" class="combo_texto" id="telefono2" /></td>
                                                        </tr>
                                                        <tr>
                                                            <td height="30" align="left">Celular</td>
                                                            <td align="left"><input name="celeluar" type="text" class="combo_texto" id="telefono2" /></td>
                                                        </tr>
                                                        <tr>
                                                            <td height="30" align="left">E-mail</td>
                                                            <td align="left"><input name="email" type="text" class="combo_texto" id="telefono2" /></td>
                                                        </tr>
                                                        <div id="micapa2" style="visibility:hidden">
                                                            <select name="tipo" class="combo_texto">
                                                                <option value ="corredor">Corredor</option>
                                                            </select>
                                                        </div>
                                                        <!--<tr>
                                                            <td height="30" align="left">Nombre de usuario </td>
                                                            <td align="left"><input name="tipo" type="text" class="combo_texto" id="email2" /></td>
                                                        </tr> -->
                                                        <tr>
                                                            <td align="left">Contrase&ntilde;a</td>
                                                            <td align="left"><input name="clave" type="password" class="combo_texto" id="email22" /></td>
                                                        </tr>
                                                        <tr>
                                                            <td valign="top">&nbsp;</td>
                                                            <td align="center">&nbsp;</td>
                                                        </tr>
                                                        <tr>
                                                            <td valign="top">&nbsp;</td>
                                                            <td align="center"><input name="Submit3" type="button" class="texto_azul"  value=" Enviar" onclick="valida()" />
                                                                &nbsp;&nbsp;
                                                                <input name="Submit22" type="reset" class="texto_azul" value=" Borrar" />                            </td>
                                                        </tr>
                                                    </form>
                                                </table>
                                            </td>
                                            <td width="272" colspan="2" valign="top"><p align="justify"><img src="images/ima_int_02.jpg" width="250" height="200" align="right" class="border" /></p></td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table></td>
                </tr>
                <tr>
                    <td colspan="2">&nbsp;</td>
                </tr>
            </table>
        </td>
    </tr>
</table>
